package prjClasses;

import java.util.Date;

public class Tournament {
	private int tournamentId;
	private int leagueId;
	private int owner;
	private String name;
	private Date dateOfInception;
	private Date dateOfEnd;
	private String status;
	private int groupStage;
	private int finalStage;
	private String prize;



	public int getLeagueId() {
		return leagueId;
	}

	public void setLeagueId(int leagueId) {
		this.leagueId = leagueId;
	}

	public int getOwner() {
		return owner;
	}

	public void setOwner(int owner) {
		this.owner = owner;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getDateOfInception() {
		return dateOfInception;
	}

	public void setDateOfInception(Date dateOfInception) {
		this.dateOfInception = dateOfInception;
	}
	
	public void setDateOfInception(String dateOfInception) {
		setDateOfInception(StringToDate.convert(dateOfInception));
	}
	
	public Date getDateOfEnd() {
		return dateOfEnd;
	}

	public void setDateOfEnd(Date dateOfEnd) {
		this.dateOfEnd = dateOfEnd;
	}

	public void setDateOfEnd(String dateOfEnd) {
		setDateOfEnd(StringToDate.convert(dateOfEnd));
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public int getGroupStage() {
		return groupStage;
	}

	public void setGroupStage(int groupStage) {
		this.groupStage = groupStage;
	}

	public int getFinalStage() {
		return finalStage;
	}

	public void setFinalStage(int finalStage) {
		this.finalStage = finalStage;
	}

	public String getPrize() {
		return prize;
	}

	public void setPrize(String prize) {
		this.prize = prize;
	}

	public int getTouranmentId() {
		return tournamentId;
	}

	public void setTouranmentId(int touranmentId) {
		this.tournamentId = touranmentId;
	}

}
